﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="otherlog.aspx.cs" Inherits="weixin.crm.otherlog" %>

<!DOCTYPE html>
<html lang="en" style="overflow: hidden;">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>其他事项</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link rel="stylesheet" media="screen" href="css/style.css">
    <link rel="stylesheet" type="text/css" href="css/reset.css">
    <script src="css/jquery-2.1.0.min.js"></script>
    <script src="css/float.js"></script>
    <script type="text/javascript">
        function postdata() {
            $.ajax({
                url: "api.ashx?rnd=" + Math.random(),
                type: "POST",
                data: { Action: "matter", matter: $("#matter").val() },
                dataType: "json",
                success: function (data) {
                    if (data.success == true) {
                        alert('保存日志成功！');
                        window.location.href = "worklogs.aspx";
                    }
                    else {
                        alert('保存日志失败,' + data.info);
                    }
                },
                error: function () {
                    alert('保存日志失败！');
                }
            });
        }
        function back() {
            if ($('#matter').val() == '') {
                window.location.href = 'worklogs.aspx';
            }
            else {
                if (confirm("您有未提交的数据，是否确认返回？")) {
                    window.location.href = 'worklogs.aspx';
                }
            }
        }
    </script>
    <style>
        .item {
            width: 80%;
            margin: 0 auto;
            min-height: 380px;
            max-height: 500px;
            z-index: 9999;
            border-radius: 10px;
            display: block;
            position: absolute;
            left: 10%;
            background-color: #fff;
            padding: 10px;
            box-sizing: border-box;
            top: 8%;
        }
    </style>
</head>
<body style="overflow: hidden;">
    <div class="item">
        <p>
            <label style="font-size: 16px;">其他事项:</label>
        </p>
        <p>
            <textarea id="matter" style="width: 100%; border: solid 1px #ccc; height: 280px; margin-top: 10px; resize: none; border-radius: 10px; padding: 10px; box-sizing: border-box;" maxlength="100" cols="3" row="3"></textarea>
        </p>
        <p>
            <div onclick="postdata();" style="width: 100%; margin-top: 25px;" class="login-button btn-sign">提交日志</div>
            <div onclick="back();" style="width: 100%; margin-top: 5px; background-color: #ccc;" class="login-button">返回</div>
        </p>
    </div>
    <div id="particles-js">
        <div class="sk-rotating-plane"></div>
        <canvas class="particles-js-canvas-el" style="width: 100%; height: 100%;" width="1920" height="917"></canvas>
    </div>
</body>
</html>
